package cate.game.play.buff.h;

import cate.game.play.buff.BuffHandler;
import cate.game.play.config.PlayCfgArgs;
import cate.game.play.proce.action.ctx.ActionCtx;

/**
 * 下回合开始时若施法者存活则眩晕buff拥有者1回合
 */
public class 风神眩晕BH extends BuffHandler {

	private int 眩晕buff;

	//眩晕buff
	@Override
	public void parse(String code) {
		PlayCfgArgs args = new PlayCfgArgs(code);
		眩晕buff = args.getInt("眩晕buff", 0);
	}

	@Override
	public void onRoundBegin(ActionCtx action) {
		if(buff.caster.isDead()){
			return;
		}
		buff.owner.buff.tryAddByTid(action, buff.caster, 眩晕buff);
	}
}
